package view.swing;

import javax.swing.BorderFactory;
import javax.swing.JPanel;

public class JGroup extends JPanel {
	
	private static final long serialVersionUID = -3950376726594609274L;
	private String title;
	
	public JGroup(String title) {
		super();
		setTitle(title);
		setBorder();
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getTitle() {
		return title;
	}
	
	private void setBorder() {
		setBorder(BorderFactory.createTitledBorder(title));
	}
}
